export const cmds = {
  readyPlay: (videoPath) => {
    let obj = {
      cmdCode: 1,
      videoPath
    }
    return JSON.stringify(obj)
  },
  startPlay: (videoPath) => {
    let obj = {
      cmdCode: 2,
      videoPath
    }
    return JSON.stringify(obj)
  },
  pausePlay: (url='') => {
    let obj = {
      cmdCode: 3,
    }
    return JSON.stringify(obj)
  },
  continuePlay: (process) => {
    let obj = {
      cmdCode: 2,
      process
    }
    return JSON.stringify(obj)
  },
  stopPlay: (url='') => {
    let obj = {
      cmdCode: 5,
    }
    return JSON.stringify(obj)
  },
  beatPlay: (currentProcess) => {
    let obj = {
      cmdCode: 601,
      message: "进度上报",
      currentProcess
    }
    return JSON.stringify(obj)
  }
}